package cn.itsource;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;


@SpringBootApplication
@EnableDiscoveryClient
public class gatewayApp11000 {
    public static void main(String[] args) {
        //查询需要做的
        //1.首先查询redis,如果为null
        //2.查询数据库
        //3.将数据库的数据存入redis
        //4.返回数据
        //5.下次查数据直接从redis取


        //对redis 做增删改
        //1.首先删除redis中的数据
        //2.对mysql做增删改
        SpringApplication.run(gatewayApp11000.class);
    }
}